<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<script>
			console.log(Number.prototype)
			console.log(parseInt(2.9))
			console.log(parseInt(2.1))
			$.modal({
				title: $th.peicai[$th.obj_child.garnish_list[b].garnish_id],
				text: "<p class='dp-1 red'>" + $th.obj_child.garnish_list[b].goods_price + "</p><div class='dp-2 mag-t-20 pad-b-20 pad-r-40 pad-l-40'>" + html1 + "</div>",
				buttons: [{
						text: "<span class='aaa'>" + "全部清除" + "</span>",
						onClick: function() {
							console.log(b_index)
							//console.log($th.obj_child.garnish_list[b])
							$th.obj_child.garnish_list[b_index]["count"] = 0;
							var c = $th.obj_child
							$th.obj_child = ""
							$th.obj_child = c;
							$th.gengxin() //更新选择对象
						}
					},
					{
						text: "确定",
						onClick: function() {
							console.log(b_index)
							$th.obj_child.garnish_list[b_index]["count"] = garnish_num;
							var c = $th.obj_child
							$th.obj_child = ""
							$th.obj_child = c;
							$th.gengxin() //更新选择对象
						}
					}
				]
			});
		</script>
	</body>

</html>